fix_wrong_index_type
authorOle Streicher <olebole@debian.org>
Mon, 26 Dec 2016 17:33:56 +0000 (17:33 +0000)
committerOle Streicher <olebole@debian.org>
Mon, 26 Dec 2016 17:33:56 +0000 (17:33 +0000)
Descrption: Fix index type in `reshape` to be integer.

This will avoid FTBFS with numpy >= 1.12 beta

Gbp-Pq: Name fix_wrong_index_type.patch

statsmodels/genmod/generalized_estimating_equations.py

index df852f35c2cdc537ac1e6c9a1240029548eae0d3..8e33ac8a15eb38c77260fe367ed7d212db898c5c 100644 (file)
@@ -2392,7 +2392,7 @@ class NominalGEEResults(GEEResults):
         exog_names = [x.split("[")[0] for x in exog_names]
 
         params = np.reshape(self.params,
-                            (ncut, len(self.params) / ncut))
+                            (ncut, len(self.params) // ncut))
 
         for ev in exog_values: